<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ page import="Bean.User" %>
<%
request.setCharacterEncoding("utf-8");
%>
<jsp:useBean id="User" class="Bean.User" scope="page" />
<jsp:setProperty property="*" name="User"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title></title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0"> 
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->

</head>

<body>
<h1>用户显示</h1><br>
<table>
<tr>
<td>用户名：</td>
<td>${User.username }</td>
</tr>
<tr>
<td>密码：</td>
<td>${User.pwd }</td>
</tr>
<tr>
<td>性别：</td>
<td>${User.sex }</td>
</tr>
<tr>
<td>爱好：</td>
<td>${User.affect[0] }${User.affect[1] }${User.affect[2] }${User.affect[3] }
</td>
</tr>
<tr>
<td></td>
<td><input name="button" type="button" value="返回" onclick="window.location.href='index.jsp'"></td>
</tr>
</table>
</body>
</html>
